//
//  WBStart01Model.m
//  WeatherBar
//
//  Created by Bert on 2024/6/19.
//

#import "WBStart01Model.h"

@interface WBStart01Model ()
//start01 客户端启动时上报  闪屏页上报
//@property (nonatomic ,copy) NSString *appsFlyer_uid;
@property (nonatomic ,copy) NSString *b; //区分不同业务
@property (nonatomic ,copy) NSString *c;  //区分影子
@property (nonatomic ,copy) NSString *imsi; //卡一imsi
@property (nonatomic ,copy) NSString *imei;
@property (nonatomic ,assign) BOOL isRooted; //手机是否 root
@property (nonatomic ,copy) NSString *idfa; //广告标识符（iOS）
@property (nonatomic ,copy) NSString *model; //手机型号
@property (nonatomic ,copy) NSString *providersName; //卡1的运营商
//@property (nonatomic ,copy) NSString *routerIp; //路由器ip
//@property (nonatomic ,copy) NSString *routerMac; //路由器mac
//@property (nonatomic ,copy) NSString *routerName; //路由器名
@property (nonatomic ,copy) NSString *sysVersion; //系统版本
@property (nonatomic ,copy) NSString *wifimac;
@end

@implementation WBStart01Model

+ (NSDictionary *)wb_getParameter {
    WBStart01Model *var_model = [[self alloc] init];
    NSDictionary *var_dic = [var_model model_keyValues];
    return var_dic;
}

- (void)wb_config {
    NSDictionary *var_dic = [WBInfoManager wb_shareInstance].var_businessInfo;
    self.mid = @"START01";
    self.b = [var_dic valueForKey:@"b"]; //区分不同的业务
    self.c = [var_dic valueForKey:@"c"]; //区分影子
    self.imsi = @"";
    self.imei = @"";
    self.isRooted = [UIDevice wb_isRoot]; //手机是否 root
    self.idfa = [UIDevice wb_getIdfaOrIdfv]; //广告标识符（iOS）
    self.model = [UIDevice wb_platform];  //手机型号
    self.providersName = [UIDevice wb_carrierNames].firstObject; //手机服务商名称
    self.sysVersion = [UIDevice currentDevice].systemVersion; //系统版本
    self.wifimac = [UIDevice wb_macaddress];

}

@end
